package com.jia.mall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * 1、想要调用别的服务
 *    引入open-feign
 *    编写一个接口，加上注解@FeignClient（调用的服务名）
 *    在启动类上面加上@EnableFeignClients
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class MallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallMemberApplication.class, args);
    }

}
